<?php
require_once __DIR__ . '/lib/BYTokenClient.php';
require_once __DIR__ . '/lib/BYHttpClient.php';
$token = 'b74fe86faf233cefbdeddfc8d0161ca1';//请填入后获取的access_token
$client = new BYTokenClient($token);

$method = 'byai.openapi.seatinfo.get';//要调用的api名称
$api_version = '1.0.0';//要调用的api版本号

$my_params = [
    'companyId' => '1',
];

echo '<pre>';
var_dump(
    $client->post($method, $api_version, $my_params)
);
echo '</pre>';
echo uniqid('DS_',true);

$obj=new BYHttpClient;
echo '<pre>';
$ar=['name'=>'abc','top'=>[1,2,3],'a'=>'中文'];
//var_dump(json_encode($ar,true));
//var_dump($obj->get('http://www.baidu.com',$ar));
echo '</pre>';


